let  changestart=false
let dianzhan=false
Page({
  data: {
    show: false,
    actions: [
      {
        name: '选项',
      },
      {
        name: '选项',
      },
      {
        name: '选项',
        subname: '描述信息',
        openType: 'share',
      },
    ],
    article:"<div class='fu' ><b>加粗</b>富文本编辑器</div>",
    article1:"<div>我是富文本编辑器展示的文字<i class='didi'>够了吧脑壳痛</i></div>",
    shouchang:"../../img/shouchang_no.png",
    dianzhan:"../../img/dianzhan_no.png"
   
  },
  // 收藏
  clickstart(){
    this.setData({
      shouchang:changestart?"../../img/shouchang_yes.png":"../../img/shouchang_no.png"
    })
    changestart=!changestart
    
  },
    // 点赞
    clickgood(){
      if(dianzhan){
        this.setData({
          dianzhan:"../../img/dianzhan_yes.png"
        })
        dianzhan=false
      }else{
        this.setData({
          dianzhan:"../../img/dianzhan_no.png"
        })
        dianzhan=true
      }
    },
  onClose() {
    this.setData({ show: false });
  },

  onSelect(event) {
    console.log(event.detail);
  },

  jiantou(){
    this.setData({ show: true });
  }
});